I am having problems using ternary operators with typescript

welcome to shbcf.ru